package com.asiainfo.crm.core.util;

import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class LoadProperties {
	static Logger logger = Logger.getLogger(LoadProperties.class);

	private static Properties prop = new Properties();

	public static void loadProperties(InputStream is) throws Exception {
		prop.load(is);
	}

	public static String getProperty(String key) {
		return prop.getProperty(key);
	}
	public static Properties getProperty(){
		return prop;
	}
	public static void setProperty(String key,String value){
		prop.setProperty(key, value);
	}
}
